<%-- 
    Document   : ListHotels
    Created on : Nov 1, 2011, 11:58:32 PM
    Author     : MrKoi
--%>

<%@page import="DAL.HotelBean"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page session="true" import="java.util.Collection" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/WEB-INF/taglib139.tld" prefix="pg" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       <title>East2West Tours and Travels</title>
      <style type="text/css">
            .khunhotel
            {
                width:490px;                                
                 margin-left:auto;
                 margin-right:auto;
            }
            .font
            {
            font-family:"Times New Roman", Times, serif;
            font-size:x-large;
            font-weight:bold;
            width:200px;
            margin-left:10px;
            color:#0707e7;
            margin-left:auto;
            margin-right:auto;            
            }
              #paging{
                    
                    clear: both;
                    font-size: 12px;
                    padding-top: 10px;
                    padding-left: 200px;
                }
        </style>
    </head>
    <body>
        <%
        HotelBean cb=new HotelBean();
        Collection cl1=cb.ListHotel();
        request.setAttribute("lc",cl1);
        %>
        <center>
                <span style="font-size: 20px;color: #343434;">List Hotels</span></center>  
        <div class="khunhotel">
            <pg:paging pageSize="4" url="index.jsp?page=ListHotels">
                <c:forEach items="${lc}" var="cr">
                    <pg:item>
                        <table width="490px" id="Table" border="0" style=" padding-bottom: 12px;background-color:#f7f6f6; margin-bottom: 12px; padding-left: 5px;padding-top: 5px;">  
                      <tr>
                        <td width="60px" rowspan="6"><img src="${cr.image}" width="120px" height="120px" /></td>
                        <td><b>Name City:</b> ${cr.nameCity}</td>
                      </tr>
                      <tr>
                        <td><b>Name Hotel:</b> ${cr.hotelName}</td>
                      </tr>
                      <tr>
                        <td><b>Address:</b> ${cr.address}</td>
                      </tr>
                      <tr>
                        <td><b>Standard:</b> ${cr.standard}</td>
                      </tr>
                      <tr>
                          <td><b>Price:</b><font color="red"> <f:formatNumber value="${cr.price}" pattern="$#,###"/></font></td>
                      </tr>                     
                      </table>
                    </pg:item>       
                </c:forEach>
               
              <div id="paging">
        <pg:index>
          <pg:page><%=thisPage%></pg:page>
        </pg:index>
                  </div>
    </pg:paging>                     
    </div>
    </body>
</html>
